package com.hr.service;

import com.hr.pojo.Employee;
import com.hr.mapper.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    public List<Employee> delete(){
        List<Employee> rows = employeeMapper.findAll();
        return rows;
    }

}